//
//  ViewController.swift
//  JKPlayGifAnimation
//
//  Created by 王冲 on 2020/8/3.
//  Copyright © 2020 王冲. All rights reserved.
//

import UIKit

class ViewController: UIViewController {

    @IBOutlet weak var gifImageView: UIImageView!
    override func viewDidLoad() {
        super.viewDidLoad()
    
        self.view.backgroundColor = .brown
       
    }
    
    override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
        // gifImageView.loadGifAnimation(localGifName: "demo")
        gifImageView.loadGifAnimation(url: "https://img.sumeme.com/52/4/1557810610676.gif")
    }


}

